from typing import Any

from fastapi import APIRouter

from example.core.model.sys_user_model import SysUserBaseModel
from example.core.service.sys_user_service import SysUserService
from example.util.response import Response

router = APIRouter(
    prefix="/sys-user",
    tags=["系统用户接口"]
)


@router.get("/select-all")
async def select_all() -> Response[list[SysUserBaseModel]]:
    users = await SysUserService.select_all()
    return Response.ok().wrap(users)
